package com.tangkeyon.service;

import com.tangkeyon.common.ResponseCode;
import com.tangkeyon.vo.CartVO;

/**
 * @Author: tangkeyon@gmail.com
 * @Date: 2019/6/11 11:49
 * @Version 1.0
 */
public interface IShoppingCartService {
     ResponseCode<CartVO> addProductToCart(Integer userId, Integer productId, Integer productCount);

     ResponseCode<CartVO> deleteProduct(Integer userId,String productIds);

     ResponseCode<CartVO> updateCount(Integer userId,Integer productId,Integer productCount);

     ResponseCode<Integer> getCount(Integer userId);

     ResponseCode<CartVO> list(Integer userId);

     ResponseCode<CartVO> selectOrUnSelect(Integer userId,Integer productId,Integer operation);


}
